home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 06 - 1990 / 06.02 Feb 90 / Bit Mapper Source / BTMP2 / BitMapper.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-19  |  1.5 KB  |  62 lines  |  [TEXT/KAHL]

  1. /* ======================================= *
  2.     file:    BitMapper.h
  3.     date:    10.01.89
  4.  * --------------------------------------- *
  5.     Main header file for the BitMapper
  6.     SuperPaint plug-in menu command.
  7.  * --------------------------------------- *
  8.     Copyright © 1989, Michael Ogawa and
  9.     MacTutor — All Rights Reserved.
  10.  * ======================================= */
  11.  
  12. #ifndef _H_BitMapper
  13. #define _H_BitMapper
  14.  
  15. #ifdef applec
  16. #    include <Types.h>
  17. #    include <Menus.h>
  18. #    include <Dialogs.h>
  19. #endif
  20.  
  21. #include "BitMapper_goodies.h"
  22. #include "BitMapperRsrc.h"
  23. #include "SPMenu.h"
  24. #include "CenterWindowIntf.h"
  25.  
  26.  
  27. /* data types ============================ */
  28.  
  29. typedef struct {
  30.     MenuDataPtr    pToolInfo;
  31.     long            *pRefCon;
  32.     GrafPtr        drawGptr;
  33. } TBitMapperRec, *TBitMapperPtr;
  34. /*    The BitMapper record is used to pass all
  35. pertinent information for our command in one
  36. data structure.  PToolInfo is a pointer to
  37. the menu data structure that was passed in by
  38. SuperPaint when we were called.  PRefCon is
  39. a pointer to the refCon word passed in, and
  40. that we can modify and use as we desire.
  41. (BitMapper does not use the refCon.)
  42. DrawGptr is the current grafPort set up by
  43. SuperPaint that contains the selection our
  44. command works on. */
  45. /*    m_o 09.17.89 */
  46.  
  47.  
  48. /* function prototypes =================== */
  49.  
  50. #ifdef applec
  51. extern pascal void BitMapper(short selector,
  52.     MenuDataPtr toolInfo, long *refCon,
  53.     short *returnCode);
  54. #endif applec
  55.  
  56. extern pascal void main(short selector,
  57.     MenuDataPtr toolInfo, long *refCon,
  58.     short *returnCode);
  59.  
  60.  
  61. #endif _H_BitMapper
  62.